package com.hydl.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hydl.power.pojo.CabinetDevice;
import com.hydl.power.pojo.CurrentTransformer;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wxx
 * @since 2021-03-03
 */
public interface CurrentTransformerMapper extends BaseMapper<CurrentTransformer> {

    CabinetDevice getCabinetDeviceNumber(String cabinetId, String projectId, String powerRoomId);

    List<CurrentTransformer> getDeviceList(String cabinetId);

    void addCurrentTransformer(CurrentTransformer currentTransformer);

    void updateCurrentTransformer(Integer id, String name, String manufactor, String serialNumber, String modelNumber, String productionTime, String transformationRatio, String cabinetId, String projectId, String projectName, String powerRoomId, String powerRoomName);

    void deleteCurrentTransformer(Integer id);

    List<CabinetDevice> getDeviceByProjectId(String projectId);
}
